/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.mediator;

/**
 * @author caicongyang1
 * @version id: ConcreteColleague, v 0.1 17/5/19 下午8:07 caicongyang1 Exp $$
 */
public class ConcreteColleague2 extends Colleague {
    public ConcreteColleague2(Mediator mediator) {
        super(mediator);
    }

    public void send(String message) {
        mediator.send(message, this);
    }

    public void notify(String message) {
        System.out.println("同事2得到信息：" + message);
    }

}
